// 节能报告
// 对应的文档名称： 11122-6文件
const mockList = [
  {
    startIndex: 1,
    endIndex: 1,
    wordType: 'Table',
    content: 'Message',
    result: ['读取流开始！！'],
    time: '0',
    ruleType: 'START',
  },
  {
    startIndex: 5,
    endIndex: 8,
    wordType: 'Table',
    content: 'Message',
    result: {
      result: [
        {
          citation:
            '引自《广东省建筑、电力、钢铁、石化、水泥行业固定资产投资项目能评对标准入值》（试行）粤发改资环〔2015〕413号',
          hgxDetail: [
            {
              ifMatch: false,
              name: '指标值',
              position: 1,
              value: '90',
              equal: false,
            },
            {
              ifMatch: false,
              name: '引导值',
              position: 2,
              ruleValue: '35',
              value: '50',
              equal: false,
            },
            {
              ifMatch: true,
              name: '约束值',
              position: 3,
              value: '45',
              equal: false,
            },
            {
              ifMatch: true,
              name: '平均值',
              position: 4,
              value: '40',
              equal: false,
            },
          ],
          indicatorName: '住宅（含公共住房）单位面积电耗',
          titleName: '项目能效指标比较(电耗)',
          type: 'hgx_xmxn',
        },
        {
          citation:
            '引自《广东省建筑、电力、钢铁、石化、水泥行业固定资产投资项目能评对标准入值》（试行）粤发改资环〔2015〕413号',
          hgxDetail: [
            {
              ifMatch: false,
              name: '指标值',
              position: 1,
              value: '90',
              equal: false,
            },
            {
              ifMatch: false,
              name: '引导值',
              position: 2,
              ruleValue: '40',
              value: '90',
              equal: false,
            },
            {
              ifMatch: false,
              name: '约束值',
              position: 3,
              ruleValue: '55',
              value: '80',
              equal: false,
            },
            {
              ifMatch: false,
              name: '平均值',
              position: 4,
              ruleValue: '47.5',
              value: '70',
              equal: false,
            },
          ],
          indicatorName: '商业（一般商铺）',
          titleName: '项目能效指标比较(电耗)',
          type: 'hgx_xmxn',
        },
        {
          citation: '引自《深圳市公共建筑能耗标准》SJG 34 - 2017',
          hgxDetail: [
            {
              ifMatch: false,
              name: '指标值',
              position: 1,
              value: '90',
              equal: false,
            },
            {
              ifMatch: true,
              name: '引导值',
              position: 2,
              value: '65',
              equal: false,
            },
            {
              ifMatch: true,
              name: '约束值',
              position: 3,
              value: '85',
              equal: false,
            },
            {
              ifMatch: false,
              name: '平均值',
              position: 4,
              ruleValue: '75',
              value: '70',
              equal: false,
            },
          ],
          indicatorName: '商业（一般商铺）',
          titleName: '项目能效指标比较(电耗)',
          type: 'hgx_xmxn',
        },
        {
          citation: '引自《广东省公共机构能源资源消耗定额》DB44/T2267 - 2021',
          hgxDetail: [
            {
              ifMatch: true,
              name: '指标值',
              position: 1,
              value: '90',
              equal: false,
            },
            {
              ifMatch: true,
              name: '引导值',
              position: 2,
              value: '35',
              equal: false,
            },
            {
              ifMatch: true,
              name: '约束值',
              position: 3,
              value: '45',
              equal: false,
            },
            {
              ifMatch: true,
              name: '平均值',
              position: 4,
              value: '40',
              equal: false,
            },
          ],
          indicatorName: '幼儿园',
          titleName: '项目能效指标比较(电耗)',
          type: 'hgx_xmxn',
        },
        {
          citation: '引自《深圳市公共建筑能耗标准》SJG 34 - 2017',
          hgxDetail: [
            {
              ifMatch: false,
              name: '指标值',
              position: 1,
              value: '90',
              equal: false,
            },
            {
              ifMatch: false,
              name: '引导值',
              position: 2,
              ruleValue: '8',
              value: '6.09',
              equal: false,
            },
            {
              ifMatch: false,
              name: '约束值',
              position: 3,
              ruleValue: '15',
              value: '9.17',
              equal: false,
            },
            {
              ifMatch: false,
              name: '平均值',
              position: 4,
              ruleValue: '11.5',
              value: '7.5',
              equal: false,
            },
          ],
          indicatorName: '地下车库',
          titleName: '项目能效指标比较(电耗)',
          type: 'hgx_xmxn',
        },
      ],
    },
    time: '26494',
    ruleType: 'rule_hgx',
  },
  {
    startIndex: 19,
    endIndex: 20,
    wordType: 'Table',
    content: 'Message',
    result: {
      result: [
        {
          actual: '1853.60',
          expression: '92680 / 5000 * 100',
          pattern: '92680 / 5000 * 100 = 70.55%',
          type: '本期住宅户型比例-建筑面积（m2）占总量比例（%）',
          expectedVal: '70.55',
          errorStr: '70.55%',
        },
      ],
    },
    time: '12469',
    ruleType: 'rule_js',
  },
  {
    startIndex: 23,
    endIndex: 23,
    wordType: 'Table',
    content: 'Message',
    result: {
      result: [
        {
          citation:
            '引自《广东省建筑、电力、钢铁、石化、水泥行业固定资产投资项目能评对标准入值》（试行）粤发改资环〔2015〕413号',
          hgxDetail: [
            {
              ifMatch: true,
              name: '指标值',
              position: 1,
              value: '68.82',
              equal: false,
            },
            {
              ifMatch: true,
              name: '引导值',
              position: 2,
              value: '40',
              equal: false,
            },
            {
              ifMatch: true,
              name: '约束值',
              position: 3,
              value: '55',
              equal: false,
            },
            {
              ifMatch: true,
              name: '平均值',
              position: 4,
              value: '0',
              equal: false,
            },
          ],
          indicatorName: '商业（一般商铺）单位面积电耗',
          titleName: '项目能效指标比较(电耗)',
          type: 'hgx_xmxn',
        },
      ],
    },
    time: '17791',
    ruleType: 'rule_hgx',
  },
  {
    startIndex: 19,
    endIndex: 20,
    wordType: 'Table',
    content: 'Message',
    result: {
      result: [
        {
          number: 1,
          name: '深圳市JFR有限公司',
          context: '用地单位',
          type: '公司名称',
        },
        {
          number: 1,
          name: '深圳市NSLY有限公司',
          context: '用地单位',
          type: '公司名称',
        },
        {
          number: 1,
          name: 'WXL',
          context: '项目名称',
          type: '项目名称',
        },
      ],
    },
    time: '40748',
    ruleType: 'rule_yzx',
  },
  {
    startIndex: 46,
    endIndex: 47,
    wordType: 'Table',
    content: 'Message',
    result: {
      result: [
        {
          actual: '510.85',
          expression: '1021.7 * 0.50',
          pattern: '1021.7 * 0.50 = 510.87',
          type: '公变-住宅公区（40W/m2）',
          expectedVal: '510.87',
          errorStr: '510.87',
        },
        {
          actual: '1073.12',
          expression: '1341.4 * 0.80',
          pattern: '1341.4 * 0.80 = 1073.11',
          type: '公变-地下车库（15W/m2）',
          expectedVal: '1073.11',
          errorStr: '1073.11',
        },
        {
          actual: '6089.61',
          expression: '43.20 + 3532.50 + 929.93 + 510.87 + 1073.11',
          pattern: '43.20 + 3532.50 + 929.93 + 510.87 + 1073.11 = 6089.60',
          type: '公变-合计（kW）',
          expectedVal: '6089.60',
          errorStr: '6089.60',
        },
      ],
    },
    time: '41860',
    ruleType: 'rule_js',
  },
  {
    startIndex: 47,
    endIndex: 47,
    wordType: 'Table',
    content: 'Message',
    result: {
      result: [
        {
          actual: '510000.00',
          expression: '3000*200.0*0.85',
          pattern: '3000*200.0*0.85 = 510.00',
          type: '专变-计算容量',
          expectedVal: '510.00',
          errorStr: '510.00',
        },
        {
          actual: '170000.00',
          expression: '1000*200.0*0.85',
          pattern: '1000*200.0*0.85 = 47.60',
          type: '专变-计算容量',
          expectedVal: '47.60',
          errorStr: '47.60',
        },
      ],
    },
    time: '13141',
    ruleType: 'rule_js',
  },
  {
    startIndex: 48,
    endIndex: 48,
    wordType: 'Table',
    content: 'Message',
    result: {
      result: [
        {
          actual: '2885.40',
          expression: '2885.4',
          pattern: '2885.4 = 3771.77',
          type: '充电变（预留）-合计（kVA）',
          expectedVal: '3771.77',
          errorStr: '3771.77',
        },
      ],
    },
    time: '14679',
    ruleType: 'rule_js',
  },
  {
    startIndex: 5,
    endIndex: 8,
    wordType: 'Table',
    content: 'Message',
    result: {
      result: [
        {
          number: 1,
          name: '深圳市JFR有限公司',
          context: '项目建设单位',
          type: '公司名称',
        },
        {
          number: 1,
          name: '深圳市NSLY有限公司',
          context: '项目建设单位',
          type: '公司名称',
        },
        {
          number: 1,
          name: '深圳市XX有限公司',
          context: '报告编制单位',
          type: '公司名称',
        },
        {
          number: 1,
          name: 'WXL',
          context: '项目名称',
          type: '项目名称',
        },
      ],
    },
    time: '190014',
    ruleType: 'rule_yzx',
  },
  {
    startIndex: 79,
    endIndex: 80,
    wordType: 'Table',
    content: 'Message',
    result: {
      result: [
        {
          actual: '76.88',
          expression: '768.78 × 0.1',
          pattern: '768.78 × 0.1 = 55.01',
          type: '未预见水量-住宅',
          expectedVal: '55.01',
          errorStr: '55.01',
        },
        {
          actual: '3.25',
          expression: '(27.00 + 5.48) × 0.1',
          pattern: '(27.00 + 5.48) × 0.1 = 6.63',
          type: '未预见水量-幼儿园',
          expectedVal: '6.63',
          errorStr: '6.63',
        },
        {
          actual: '39.11',
          expression: '27.00 + 5.48 + 6.63',
          pattern: '27.00 + 5.48 + 6.63 = 12.11',
          type: '小计-幼儿园',
          expectedVal: '12.11',
          errorStr: '12.11',
        },
        {
          actual: '175.10',
          expression: '145.95 + 22.02 + 7.13',
          pattern: '145.95 + 22.02 + 7.13 = 176.55',
          type: '小计-市政直供区',
          expectedVal: '176.55',
          errorStr: '176.55',
        },
        {
          actual: '1023.44',
          expression: '823.79 + 23.10 + 176.55',
          pattern: '823.79 + 23.10 + 176.55 = 1035.55',
          type: '合计',
          expectedVal: '1035.55',
          errorStr: '1035.55',
        },
      ],
    },
    time: '104485',
    ruleType: 'rule_js',
  },
]

// 对应的文档名称： 安居项目摘要表文件
const mockList2 = [
  {
    startIndex: 1,
    endIndex: 1,
    wordType: 'Table',
    content: 'Message',
    result: ['读取流开始！！'],
    time: '0',
    ruleType: 'START',
  },
  {
    startIndex: 1,
    endIndex: 2,
    wordType: 'Table',
    content: 'Message',
    result: {
      result: [
        {
          actual: '130.08',
          expression: '1058.41*0.1229',
          pattern: '1058.41*0.1229 = 1300.78',
          type: '项目主要能耗品种-折标煤量（tce）',
          expectedVal: '1300.78',
          errorStr: '1300.78',
        },
        {
          actual: '303.66',
          expression: '1058.41*0.2869',
          pattern: '1058.41*0.2869 = 3036.57',
          type: '项目主要能耗品种-折标煤量（tce）',
          expectedVal: '3036.57',
          errorStr: '3036.57',
        },
        {
          actual: '54.77',
          expression: '45.10*1.2143',
          pattern: '45.10*1.2143 = 547.64',
          type: '项目主要能耗品种-折标煤量（tce）',
          expectedVal: '547.64',
          errorStr: '547.64',
        },
      ],
    },
    time: '20769',
    ruleType: 'rule_js',
  },
  {
    startIndex: 1,
    endIndex: 2,
    wordType: 'Table',
    content: 'Message',
    result: {
      result: [
        {
          number: 1,
          name: '深圳市坪山安居有限公司',
          context: '项目建设单位',
          type: '公司名称',
        },
        {
          number: 1,
          name: '深圳市新港汇工程技术有限公司',
          context: '报告编制单位',
          type: '公司名称',
        },
        {
          number: 1,
          name: '安居盘龙苑',
          context: '项目名称',
          type: '项目名称',
        },
      ],
    },
    time: '25076',
    ruleType: 'rule_yzx',
  },
  {
    startIndex: 1,
    endIndex: 2,
    wordType: 'Table',
    content: 'Message',
    result: {
      result: [
        {
          citation:
            '引自《广东省建筑、电力、钢铁、石化、水泥行业固定资产投资项目能评对标准入值》（试行）粤发改资环〔2015〕413号',
          hgxDetail: [
            {
              ifMatch: true,
              name: '指标值',
              position: 1,
              value: '888',
            },
            {
              ifMatch: true,
              name: '引导值',
              position: 2,
              value: '32.3',
            },
            {
              ifMatch: true,
              name: '约束值',
              position: 3,
              value: '38.8',
            },
            {
              ifMatch: true,
              name: '平均值',
              position: 4,
              value: '35.55',
            },
          ],
          indicatorName: '（商业-购物中心）单位建筑面积年综合能耗',
          titleName: '项目能效指标比较(能耗)',
          type: 'hgx_xmxn',
        },
        {
          citation:
            '引自《广东省建筑、电力、钢铁、石化、水泥行业固定资产投资项目能评对标准入值》（试行）粤发改资环〔2015〕413号',
          hgxDetail: [
            {
              ifMatch: true,
              name: '指标值',
              position: 1,
              value: '666',
            },
            {
              ifMatch: true,
              name: '引导值',
              position: 2,
              value: '27.2',
            },
            {
              ifMatch: true,
              name: '约束值',
              position: 3,
              value: '32.3',
            },
            {
              ifMatch: true,
              name: '平均值',
              position: 4,
              value: '29.75',
            },
          ],
          indicatorName: '（商业地下-超市）单位建筑面积年综合能耗',
          titleName: '项目能效指标比较(能耗)',
          type: 'hgx_xmxn',
        },
        {
          citation: '引自《深圳市公共建筑能耗标准》SJG 34-2017',
          hgxDetail: [
            {
              ifMatch: true,
              name: '指标值',
              position: 1,
              value: '80',
            },
            {
              ifMatch: true,
              name: '引导值',
              position: 2,
              value: '8',
            },
            {
              ifMatch: true,
              name: '约束值',
              position: 3,
              value: '15',
            },
            {
              ifMatch: true,
              name: '平均值',
              position: 4,
              value: '11.5',
            },
          ],
          indicatorName: '（地下车库-机动车停车库）单位建筑面积年综合电耗',
          titleName: '项目能效指标比较(电耗)',
          type: 'hgx_xmxn',
        },
        {
          citation:
            '引自《广东省建筑、电力、钢铁、石化、水泥行业固定资产投资项目能评对标准入值》（试行）粤发改资环〔2015〕413号',
          hgxDetail: [
            {
              ifMatch: true,
              name: '指标值',
              position: 1,
              value: '90',
            },
            {
              ifMatch: true,
              name: '引导值',
              position: 2,
              value: '45',
            },
            {
              ifMatch: true,
              name: '约束值',
              position: 3,
              value: '45',
            },
            {
              ifMatch: true,
              name: '平均值',
              position: 4,
              value: '45',
            },
          ],
          indicatorName: '（住宅-住宅）单位建筑面积年综合电耗',
          titleName: '项目能效指标比较(电耗)',
          type: 'hgx_xmxn',
        },
        {
          citation:
            '引自《广东省建筑、电力、钢铁、石化、水泥行业固定资产投资项目能评对标准入值》（试行）粤发改资环〔2015〕413号',
          hgxDetail: [
            {
              ifMatch: true,
              name: '指标值',
              position: 1,
              value: '999',
            },
            {
              ifMatch: true,
              name: '引导值',
              position: 2,
              value: '250',
            },
            {
              ifMatch: true,
              name: '约束值',
              position: 3,
              value: '300',
            },
            {
              ifMatch: true,
              name: '平均值',
              position: 4,
              value: '275',
            },
          ],
          indicatorName: '（商业-购物中心）单位建筑面积年综合电耗',
          titleName: '项目能效指标比较(电耗)',
          type: 'hgx_xmxn',
        },
        {
          citation:
            '引自《广东省建筑、电力、钢铁、石化、水泥行业固定资产投资项目能评对标准入值》（试行）粤发改资环〔2015〕413号',
          hgxDetail: [
            {
              ifMatch: true,
              name: '指标值',
              position: 1,
              value: '777',
            },
            {
              ifMatch: true,
              name: '引导值',
              position: 2,
              value: '210',
            },
            {
              ifMatch: true,
              name: '约束值',
              position: 3,
              value: '250',
            },
            {
              ifMatch: true,
              name: '平均值',
              position: 4,
              value: '230',
            },
          ],
          indicatorName: '（商业地下-超市）单位建筑面积年综合电耗',
          titleName: '项目能效指标比较(电耗)',
          type: 'hgx_xmxn',
        },
      ],
    },
    time: '26601',
    ruleType: 'rule_hgx',
  },
  {
    startIndex: 1,
    endIndex: 1,
    wordType: 'Table',
    content: 'Message',
    result: ['读取流结束！！'],
    time: '0',
    ruleType: 'END',
  },
]

export function getMsg(index = 0) {
  const arr = mockList2
  if (index > arr.length) {
    return null
  }
  return arr[index]
}
